package com.bubblegumproject.ogo.swing.binding;

/**
 * Encapsulates a strategy for formatting domain objects for printing to a Swing GUI (eg displaying them in a JTable)
 * and for parsing the resulting strings back into domain values (eg from a JCombobox).
 *
 * @author Azubuko Obele (buko.obele@gmail.com)
 */
public interface Formatter<D, S> {

    public S format(D domainValue);

    public D parse(S stringValue);
    
}
